<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src='jquery-1.10.2.min.js'> </script>
<head>
<style type = 'text/css'>
.ClassDiv{
  background-color:yellow;
  width:100px;
  height:100px;
  border: solid 2px #F00;
  float:left;
}
</style>
</head>
<script>
function board(){
var n = prompt('nhap mot so: ');
for(i = 1;i<=n;i++) 
document.write('<div class = "ClassDiv" id = "the'+i+'" align = "center" >'+i+'</div>');
}
board();
</script>